package com.example.serverdemo.netty.device_tcp_server.type;

public enum FunctionType {
    Null("无",ModuleType.Null,0),
    FirmwareUpdate("设备固件升级",ModuleType.CoreController,1),
    HardwareParameterConfiguration("硬件参数配置",ModuleType.CoreController,2),
    HardwareParameterReadBack("硬件参数回读",ModuleType.CoreController,3),
    LightingControllerParameterReadBack("灯光控制器参数回读",ModuleType.LightingController,4),
    LightingControllerParameterConfiguration("灯光控制器参数配置",ModuleType.LightingController,5),
    CentralControllerProtocolConfiguration("中央控制器协议配置",ModuleType.CentralController,6),
    WallboardParameterConfiguration("墙板参数配置",ModuleType.Wallboard,7),
    WallboardParameterReadBack("墙板参数回读",ModuleType.Wallboard,8);
    private String functionName;
    private ModuleType moduleType;
    private int index;

    FunctionType(String functionName, ModuleType moduleType, int index) {
        this.functionName = functionName;
        this.moduleType = moduleType;
        this.index = index;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public ModuleType getModuleType() {
        return moduleType;
    }

    public void setModuleType(ModuleType moduleType) {
        this.moduleType = moduleType;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
